import React from 'react';
import { Card } from 'antd';
import './style.css';

class NoteCard extends React.Component{


    render(){
        return(
            <Card className='noteCard' extra={<span>{this.props.date}</span>} title={<a href="/">{this.props.title}</a>}>
                <p>{this.props.content}</p>
            </Card>
        )
    }

}

export default NoteCard